﻿using System;
using System.Linq;
using System.Security.Cryptography;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using Resn.WhuPub.BIL;
using Resn.WhuPub.BLL;

namespace Resn.WhuPub.WPFClientUI
{
        /// <summary>
        /// SystemPage.xaml 的交互逻辑
        /// </summary>
        public partial class EmployeeInfoPage : Page
        {
                private readonly GlobalManager gm = GlobalManager.Instance;

                public EmployeeInfoPage()
                {
                        InitializeComponent();
                }

                private void Page_Loaded(object sender, RoutedEventArgs e)
                {
                        LayoutRoot.DataContext = gm;
                }

                

                private void TravelButton_Click(object sender, RoutedEventArgs e)
                {
                        NavigationService.Navigate(new Uri("ManageTravelsPage.xaml", UriKind.Relative));
                }

                private void FeedbackButton_Click(object sender, RoutedEventArgs e)
                {
                        NavigationService.Navigate(new Uri("ManageFeedbacksPage.xaml", UriKind.Relative));
                }


                private void BookDeliveryButton_Click(object sender, RoutedEventArgs e)
                {
                        NavigationService.Navigate(new Uri("ManageBookDeliverysPage.xaml", UriKind.Relative));
                }

                private void InvoiceDeliveryButton_Click(object sender, RoutedEventArgs e)
                {
                        NavigationService.Navigate(new Uri("ManageInvoiceDeliverysPage.xaml", UriKind.Relative));
                }
        }
}